const mongoose = require('mongoose')

const Schema = mongoose.Schema

mongoose.connect("mongodb://localhost/shopUser", { useNewUrlParser: true })

var userSchema = new Schema({
    uname: {
        type: String,
        require: true
    },
    paw: {
        type: String,
        require: true
    },
    email:  {
        type: String,
        require: true
    },
    type: {
        type: String,
        require: true
    },
    hImg: {
        type: String,
        require: true
    },
    sname: {
        type: String,
        require: true
    },
})

module.exports = mongoose.model('user', userSchema)